﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace HDT.GUI
{
    public partial class FrmThemCK : Form
    {
        public delegate void MyDelegate(int SoLuong, double TyLe);
        public MyDelegate AddChietKhau;

        public FrmThemCK()
        {
            InitializeComponent();
        }

        private void btnQuayLai_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void btnThemLoaiMH_Click(object sender, EventArgs e)
        {
            int SoLuong = (int) numSoLuong.Value;
            double TyLe = (double) numTyLe.Value / 100;
            AddChietKhau(SoLuong, TyLe);
            this.Dispose();
        }
    }
}
